package com.decent.ejfadmin.common.exception;

/**
 * @author zhangchao
 * @date 2018/6/13 13:43
 */
public class SupException extends Exception {

    private static final long serialVersionUID = -1L;

    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误描述
     */
    private String resMessage;

    public SupException() {
        super();
    }

    public SupException(Integer code) {
        this.code = code;
    }

    public SupException(String resMessage) {
        this.resMessage = resMessage;
    }

    public SupException(Integer code, String resMessage) {
        super(resMessage);
        this.resMessage = resMessage;
        this.code = code;
    }

    public SupException(Integer code, String resMessage, Throwable cause) {
        super(resMessage, cause);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getResMessage() {
        return resMessage;
    }
}
